package org.soenea.doitall.application.dispatcher;

import java.io.IOException;

import javax.servlet.ServletException;

import org.dsrg.soenea.application.servlet.dispatcher.Dispatcher;
import org.soenea.doitall.domain.command.LoginCommand;

public class LoginDispatcher extends BuddyAgeDispatcher {
	
	@Override
	public void execute() throws ServletException, IOException {
		try {
			new LoginCommand(myHelper).execute();
			forwardJSP("index.jsp");
	  } catch (Exception e) {
		  //don't go anywhere
		  forward("../index.html");
	  }
	 }
 }
